
package std.posix


@Deprecated
@!APILevel[
    since: "22"
]
public const O_RDONLY: Int32 = 0x0

@Deprecated
@!APILevel[
    since: "22"
]
public const O_RDWR: Int32 = 0x2

@Deprecated
@!APILevel[
    since: "22"
]
public const O_WRONLY: Int32 = 0x1

@Deprecated
@!APILevel[
    since: "22"
]
public const O_APPEND: Int32 = 0x400

@Deprecated
@!APILevel[
    since: "22"
]
public const O_CLOEXEC: Int32 = 0x80000

@Deprecated
@!APILevel[
    since: "22"
]
public const O_CREAT: Int32 = 0x40

@Deprecated
@!APILevel[
    since: "22"
]
public const O_DIRECTORY: Int32 = 0x10000

@Deprecated
@!APILevel[
    since: "22"
]
public const O_DSYNC: Int32 = 0x1000

@Deprecated
@!APILevel[
    since: "22"
]
public const O_EXCL: Int32 = 0x80

@Deprecated
@!APILevel[
    since: "22"
]
public const O_NOCTTY: Int32 = 0x100

@Deprecated
@!APILevel[
    since: "22"
]
public const O_NOFOLLOW: Int32 = 0x20000

@Deprecated
@!APILevel[
    since: "22"
]
public const O_NONBLOCK: Int32 = 0x800

@Deprecated
@!APILevel[
    since: "22"
]
public const O_SYNC: Int32 = 0x101000

@Deprecated
@!APILevel[
    since: "22"
]
public const O_TRUNC: Int32 = 0x200

@Deprecated
@!APILevel[
    since: "22"
]
public const O_RSYNC: Int32 = 0x101000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IRUSR: UInt32 = 0x100

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IWUSR: UInt32 = 0x80

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IXUSR: UInt32 = 0x40

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IRWXU: UInt32 = 0x1C0

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IRGRP: UInt32 = 0x20

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IWGRP: UInt32 = 0x10

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IXGRP: UInt32 = 0x8

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IRWXG: UInt32 = 0x38

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IROTH: UInt32 = 0x4

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IWOTH: UInt32 = 0x2

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IXOTH: UInt32 = 0x1

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IRWXO: UInt32 = 0x7

@Deprecated
@!APILevel[
    since: "22"
]
public const SEEK_SET: Int32 = 0x0

@Deprecated
@!APILevel[
    since: "22"
]
public const SEEK_CUR: Int32 = 0x1

@Deprecated
@!APILevel[
    since: "22"
]
public const SEEK_END: Int32 = 0x2

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func `open`(path: String, oflag: Int32, flag: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func `open`(path: String, oflag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func open64(path: String, oflag: Int32, flag: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func open64(path: String, oflag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func openat(fd: Int32, path: String, oflag: Int32, flag: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func openat(fd: Int32, path: String, oflag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func openat64(fd: Int32, path: String, oflag: Int32, flag: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func openat64(fd: Int32, path: String, oflag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func creat(path: String, flag: UInt32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func close(fd: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func lseek(fd: Int32, offset: Int64, whence: Int32): Int64

@Deprecated
@!APILevel[
    since: "22"
]
public func dup(fd: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func dup2(fd: Int32, fd2: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public unsafe func read(fd: Int32, buffer: CPointer<UInt8>, nbyte: UIntNative): IntNative

@Deprecated
@!APILevel[
    since: "22"
]
public unsafe func pread(fd: Int32, buffer: CPointer<UInt8>, nbyte: UIntNative, offset: Int32): IntNative

@Deprecated
@!APILevel[
    since: "22"
]
public unsafe func write(fd: Int32, buffer: CPointer<UInt8>, nbyte: UIntNative): IntNative

@Deprecated
@!APILevel[
    since: "22"
]
public unsafe func pwrite(fd: Int32, buffer: CPointer<UInt8>, nbyte: UIntNative, offset: Int32): IntNative

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFREG: UInt32 = 0x8000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFDIR: UInt32 = 0x4000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFCHR: UInt32 = 0x2000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFBLK: UInt32 = 0x6000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFIFO: UInt32 = 0x1000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFLNK: UInt32 = 0xA000

@Deprecated
@!APILevel[
    since: "22"
]
public const S_IFSOCK: UInt32 = 0xC000

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isType(path: String, mode: UInt32): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isReg(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isDir(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isChr(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isBlk(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isFIFO(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isSock(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func isLnk(path: String): Bool

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func chdir(path: String): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func fchdir(fd: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getcwd(): String

@Deprecated
@!APILevel[
    since: "22"
]
public func getos(): String

/**
* @throws IndexOutOfBoundsException
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func gethostname(): String

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func sethostname(buf: String): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getlogin(): String

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func link(path: String, newpath: String): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func unlink(path: String): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public const AT_EMPTY_PATH: Int32 = 0x1000

@Deprecated
@!APILevel[
    since: "22"
]
public const AT_SYMLINK_FOLLOW: Int32 = 0x400

@Deprecated
@!APILevel[
    since: "22"
]
public const AT_FDCWD: Int32 = -0x64

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func linkat(fd: Int32, path: String, nfd: Int32, newPath: String, lflag: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public const AT_REMOVEDIR: Int32 = 0x200

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func unlinkat(fd: Int32, path: String, ulflag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func symlink(path: String, symPath: String): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func symlinkat(path: String, fd: Int32, symPath: String): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func remove(path: String): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func rename(oldName: String, newName: String): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func renameat(oldfd: Int32, oldName: String, newfd: Int32, newName: String): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGHUP: Int32 = 0x1

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGINT: Int32 = 0x2

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGQUIT: Int32 = 0x3

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGILL: Int32 = 0x4

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGTRAP: Int32 = 0x5

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGABRT: Int32 = 0x6

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGIOT: Int32 = 0x6

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGBUS: Int32 = 0x7

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGFPE: Int32 = 0x8

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGKILL: Int32 = 0x9

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGUSR1: Int32 = 0xA

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGSEGV: Int32 = 0xB

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGUSR2: Int32 = 0xC

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGPIPE: Int32 = 0xD

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGALRM: Int32 = 0xE

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGTERM: Int32 = 0xF

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGSTKFLT: Int32 = 0x10

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGCHLD: Int32 = 0x11

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGCONT: Int32 = 0x12

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGSTOP: Int32 = 0x13

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGTSTP: Int32 = 0x14

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGTTIN: Int32 = 0x15

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGTTOU: Int32 = 0x16

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGURG: Int32 = 0x17

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGXCPU: Int32 = 0x18

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGXFSZ: Int32 = 0x19

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGVTALRM: Int32 = 0x1A

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGPROF: Int32 = 0x1B

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGWINCH: Int32 = 0x1C

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGIO: Int32 = 0x1D

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGPWR: Int32 = 0x1E

@Deprecated
@!APILevel[
    since: "22"
]
public const SIGSYS: Int32 = 0x1F

@Deprecated
@!APILevel[
    since: "22"
]
public func getgid(): UInt32

@Deprecated
@!APILevel[
    since: "22"
]
public func getuid(): UInt32

@Deprecated
@!APILevel[
    since: "22"
]
public func setgid(id: UInt32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func setuid(id: UInt32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getpgid(pid: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public unsafe func getgroups(size: Int32, gidArray: CPointer<UInt32>): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getpid(): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getppid(): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func getpgrp(): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func setpgrp(): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func setpgid(pid: Int32, pgrp: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func nice(inc: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func kill(pid: Int32, sig: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func killpg(pgid: Int32, sig: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public const R_OK: Int32 = 0x4

@Deprecated
@!APILevel[
    since: "22"
]
public const W_OK: Int32 = 0x2

@Deprecated
@!APILevel[
    since: "22"
]
public const X_OK: Int32 = 0x1

@Deprecated
@!APILevel[
    since: "22"
]
public const F_OK: Int32 = 0x0

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func access(path: String, mode: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func faccessat(fd: Int32, path: String, mode: Int32, flag: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func umask(cmask: UInt32): UInt32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func chown(path: String, owner: UInt32, group: UInt32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func fchown(fd: Int32, owner: UInt32, group: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func lchown(path: String, owner: UInt32, group: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func fchownat(fd: Int32, path: String, owner: UInt32, group: UInt32, flag: Int32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func chmod(path: String, mode: UInt32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func fchmod(fd: Int32, mode: UInt32): Int32

/**
* @throws IllegalArgumentException
* @throws IllegalMemoryException
*/
@Deprecated
@!APILevel[
    since: "22",
    throwexception: true
]
public func fchmodat(fd: Int32, path: String, mode: UInt32, flag: Int32): Int32

@Deprecated
@!APILevel[
    since: "22"
]
public func isatty(fd: Int32): Bool

@Deprecated
@!APILevel[
    since: "22"
]
public func ttyname(fd: Int32): String

